require
Asserts a boolean condition.
Since
0.6.0
Parameters
value
the boolean condition to check
message
the message for the exception to be thrown if the condition is false
Throws
exception
if the provided condition is false
Asserts that a value is not null
.
Return
the passed value
, but with type cast from T?
to T
Since
0.6.0
Parameters
value
the value to check, and returned if it is not null
message
the error message to be thrown if the value is null
Throws
exception
if the provided value is null